package com.itheima.mapper;

import com.itheima.entity.Emp;
import com.itheima.entity.EmpLoginInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
    /**
     * 登录
     * @param emp
     * @return
     */
    @Select("select id,name,username from emp where username=#{username} and password=#{password}")
    public EmpLoginInfo login(Emp emp);
}
